home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0224.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  1.1 KB  |  31 lines

  1. > Well, I never have used Procedures much, so this is just a guess...
  2. > Let's imagine 'a' is your 'Movement' procedure.
  3. >  MB> a
  4. >  MB> Procedure a
  5. >  MB> b
  6. >      ^- delete this line
  7. >         when 'a' exits it should jump back to 'b'
  8. >  MB> endproc
  9. >  MB> procedure b
  10. >  MB> a
  11. >  MB> endproc
  12. > AFAIK, Procedures are little programs, all by themselves. They can't
  13. > call subroutines that aren't contained within the Procedure, which is
  14. > why I don't use them. I use all Subroutines. But I think a Procedure
  15. > can call another Procedure.
  16.  
  17.    Very true!!  Didn't even catch that.  Yes, you can't be calling 
  18.    the "external" subroutine from inside the Procedure.
  19.  
  20.    If you still need help with this then give some more specifics
  21.    about what you're trying to do as that will help sort out the
  22.    problem.  I can't see why you need to call a subroutine from
  23.    a Procedure.  Just change the subroutine to a procedure like 
  24.    Rand has shown.
  25.  
  26.  
  27.                 Garfield Benjamin    e-mail:gbenjam@sosbbs.com
  28.         Website( http://www.sosbbs.com/~gbenjam ): 50% Complete
  29.  
  30.